-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynaflow refactor #130
Dynaflow refactor #130
Conversation
- iidm version - version of Dynaflow API - Dynaflow name Signed-off-by: BAUDRIER Dimitri <dimitri.baudrier@rte-france.com>
Signed-off-by: BAUDRIER Dimitri <dimitri.baudrier@rte-france.com>
Signed-off-by: BAUDRIER Dimitri <dimitri.baudrier@rte-france.com>
Signed-off-by: BAUDRIER Dimitri <dimitri.baudrier@rte-france.com>
Signed-off-by: BAUDRIER Dimitri <dimitri.baudrier@rte-france.com>
Signed-off-by: BAUDRIER Dimitri <dimitri.baudrier@rte-france.com>
dynaflow/src/main/java/com/powsybl/dynaflow/DynaFlowConfig.java
Outdated
Show resolved
Hide resolved
dynaflow/src/main/java/com/powsybl/dynaflow/DynaFlowProvider.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Florian Dupuy <66690739+flo-dup@users.noreply.github.com> Signed-off-by: BAUDRIER Dimitri <dimitri.baudrier@rte-france.com>
f9d7286
to
e91bb63
Compare
Signed-off-by: BAUDRIER Dimitri <dimitri.baudrier@rte-france.com>
Signed-off-by: BAUDRIER Dimitri <dimitri.baudrier@rte-france.com>
dynaflow/src/main/java/com/powsybl/dynaflow/DynaFlowConstants.java
Outdated
Show resolved
Hide resolved
Signed-off-by: BAUDRIER Dimitri <dimitri.baudrier@rte-france.com>
Signed-off-by: BAUDRIER Dimitri <dimitri.baudrier@rte-france.com>
Signed-off-by: BAUDRIER Dimitri <dimitri.baudrier@rte-france.com>
@@ -74,6 +76,11 @@ public void checkExecutionCommand() { | |||
assertEquals(expectedExecutionCommand, executionCommand); | |||
} | |||
|
|||
@Test | |||
public void iidmCurrentVersionUsed() { | |||
assertEquals(IidmXmlVersion.V_1_4.toString("."), IIDM_VERSION); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can remove that test which is not that useful, plus it produces a code smell.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
return this.toString(DEFAULT_DELIMITER); | ||
} | ||
|
||
public static DynaFlowVersion of(String version) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could also return an Optional<DynaFlowVersion>
in both DynaFlowVersion::of
, it would make the code a bit clearer when checking the version don't you think? with a .map(v -> v.compareTo(version) >= 0).orElse(false)
instead of catching an exception
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh nice, it's quite better indeed!
Done!
Signed-off-by: BAUDRIER Dimitri <dimitri.baudrier@rte-france.com>
Signed-off-by: BAUDRIER Dimitri <dimitri.baudrier@rte-france.com>
Signed-off-by: BAUDRIER Dimitri <dimitri.baudrier@rte-france.com>
Kudos, SonarCloud Quality Gate passed! |
Please check if the PR fulfills these requirements (please use
'[x]'
to check the checkboxes, or submit the PR and then click the checkboxes)What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Mainly changing the IIDM version.